<template>
	<view>
		<up-no-network @disconnected="disconnected" @connected="connected"
			@retry="retry"></up-no-network>
		<view class="up-content">
			<view class="up-content__circle">
				<up-icon name="checkbox-mark" color="#fff" size="30"></up-icon>
			</view>
			<text class="up-content__normal">网络正常</text>
		</view>
	</view>
</template>

<script setup>
	
	function disconnected() {
		console.log('disconnected');
	}

	function connected() {
		console.log('connected');
	}

	function retry() {
		console.log('retry');
	}
</script>

<style lang="scss" scoped>
	.up-content {
		padding: 150px 60px 0;
		@include flex(column);
		align-items: center;
		justify-content: center;

		&__circle {
			background-color: $u-success;
			@include flex;
			border-radius: 100px;
			width: 60px;
			height: 60px;
			align-items: center;
			justify-content: center;
		}

		&__normal {
			font-size: 15px;
			color: $u-success;
			margin-top: 15px;
		}
	}
</style>